package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);comment:用户名"`
	Password string `gorm:"type:varchar(32);comment:密码"`
}
type New struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30);comment:标题"`
	Content string `gorm:"type:varchar(300);comment:内容"`
	Picture string `gorm:"type:varchar(300);comment:图片"`
}
type Comment struct {
	gorm.Model
	UserID int `gorm:"type:int;comment:用户ID"`
	NewID  int `gorm:"type:int;comment:新闻ID"`
}
